#pragma once

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QFileDialog>
#include <QMessageBox>

#include <QCoreApplication>

#include <JlCompress.h>

#define APP_DIR QCoreApplication::applicationDirPath()

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    bool removeDirectory(const QString &path);

private:
    QLineEdit *mEdit = new QLineEdit;
    QPushButton *mBtnSelect = new QPushButton("...");
    QPushButton *mBtnFix = new QPushButton("修复");
};
